<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../org/angular.min.js"></script>
</head>
<body ng-app="vm" ng-controller="ctrl">
    <div hdcms>
       
    </div>
    <script>
        var vm = angular.module('vm',[]);
        vm.directive('hdcms',[function(){
            return {
                restrict:'AEC',
                template: '自定义指令组件'
            }
        }])
        vm.controller('ctrl',['$scope',function($scope){

        }])
    </script>
</body>
</html>